﻿@model MyPSDALayer.Message
@{
    ViewBag.Title = "意见反馈";
}
@Scripts.Render("/Scripts/jquery.unobtrusive-ajax.js")
@Scripts.Render("/Scripts/jquery.validate.min.js")
@Scripts.Render("/Scripts/jquery.validate.unobtrusive.min.js")
<script type="text/javascript">
    var c_page = "feedback";
</script>
<!-- flash开始-->
<div class="flashshow">
    <img src="/images/neiye.jpg" width="980" height="200" />
</div>
<!-- flash结束-->
<!--服务流程开始-->
<div class="fwlc">
    <div class="online fr">
        <dl>
            <dt><a target="_blank" href=" http://wpa.qq.com/msgrd?v=3&uin=249846170号&site=qq&menu=yes">
                <img border="0" src="/images/zx_qq.gif" alt="点击这里给我发消息" title="点击这里给我发消息"></a></dt>
            <dd>
                Q Q：<font style="color: #FFE372; font-size: 14px;">249846170</font><br />
                电话：<font style="color: #FFE372; font-size: 14px;">15883827208</font></dd>
        </dl>
    </div>
</div>
<!-- 服务流程结束-->
<!--主体部分开始-->
<div class="wrap p10">
    <h3>
        意见反馈<span>Feedback</span></h3>
    <div class="message">
        @using (Html.BeginForm("Index", "Feedback", FormMethod.Post, new { id = "form1" }))
        {  
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)           
            <ul>
                <li>
                    @Html.LabelFor(m => m.CreateBy)
                    @Html.TextBoxFor(m => m.CreateBy, new { @class = "G_InputText" })
                    @Html.ValidationMessageFor(m => m.CreateBy)
                </li>
                <li>
                    @Html.LabelFor(m => m.Phone)
                    @Html.TextBoxFor(m => m.Phone, new { @class = "G_InputText" })
                    @Html.ValidationMessageFor(m => m.Phone)
                </li>
                <li>
                    @Html.LabelFor(m => m.QQ)
                    @Html.TextBoxFor(m => m.QQ, new { @class = "G_InputText" })
                    @Html.ValidationMessageFor(m => m.QQ)
                </li>
                <li>
                    @Html.LabelFor(m => m.Mail)
                    @Html.TextBoxFor(m => m.Mail, new { @class = "G_InputText" })
                    @Html.ValidationMessageFor(m => m.Mail)
                </li>
                <li>
                    @Html.LabelFor(m => m.MsgTitle)
                    @Html.TextBoxFor(m => m.MsgTitle, new { @class = "G_InputText2" })
                    @Html.ValidationMessageFor(m => m.MsgTitle)
                </li>
                <li class="content">
                    @Html.LabelFor(m => m.Content)
                    @Html.TextAreaFor(m => m.Content, new { @class = "G_textarea" })
                    @Html.ValidationMessageFor(m => m.Content)
                </li>
                <li>
                    <label for="checkCode">
                        验 证 码：</label>
                    <img src="/Feedback/GetValidateCode" alt="看不清？点击更换" id="imgcode" style="margin-bottom: -4px;
                        cursor: pointer;" />
                    <input type="text" name="Code" id="Code" style="width: 50px; height: 16px; border: 1px solid #dedede;
                        margin-left: 7px; text-transform: uppercase;" />
                    <span style="color: red">*</span> </li>
                <li class="btn">
                    <input type="submit" id="btnSubmit" name="submit" value="提交信息" class="G_botton" />
                    <input type="reset" value="重填信息" class="G_botton" />
                </li>
            </ul>              
        }
    </div>
</div>
<!--主题部分结束-->
<script type="text/javascript">
    $(document).ready(function () {
        var flag = '@ViewBag.Flag';
        if (flag == "POST") {
            alert("提交成功!");
            $("input[type=text]").val("");
            $("#Content").text("");
        }
        $("#imgcode").click(function () {
            this.src = "/Feedback/GetValidateCode?time=" + (new Date()).getTime();
        });
        $("#btnSubmit").click(function () {
            var code = $("#Code").val();
            if ($.trim(code) == "") {
                alert("请输入验证码!");
                return false;
            }
        });
    });
</script>
